Chains
Retrieve Chains
Welcome to the Omise Docs! These pages should contain everything you need to know to get paid using the Omise API. This is developer-oriented documentation.If you are not a developer, you can check our comprehensive support articles for non-technical explanations of various concepts or go straight to the plugin overview.
curl -X GET\
-H "Accept: application/json"\
"https://api.omise.co/chains?from=&to=&offset=&limit=&order="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ChainsApi;
import java.io.File;
import java.util.*;
public class ChainsApiExample {
public static void main(String[] args) {
ChainsApi apiInstance = new ChainsApi();
Date from = 2013-10-20T19:20:30+01:00; // Date |
Date to = 2013-10-20T19:20:30+01:00; // Date |
Integer offset = 56; // Integer |
Integer limit = 56; // Integer |
String order = order_example; // String |
try {
list result = apiInstance.chainsGet(from, to, offset, limit, order);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ChainsApi#chainsGet");
e.printStackTrace();
}
}
}
import io.swagger.client.api.ChainsApi;
public class ChainsApiExample {
public static void main(String[] args) {
ChainsApi apiInstance = new ChainsApi();
Date from = 2013-10-20T19:20:30+01:00; // Date |
Date to = 2013-10-20T19:20:30+01:00; // Date |
Integer offset = 56; // Integer |
Integer limit = 56; // Integer |
String order = order_example; // String |
try {
list result = apiInstance.chainsGet(from, to, offset, limit, order);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ChainsApi#chainsGet");
e.printStackTrace();
}
}
}
Date *from = 2013-10-20T19:20:30+01:00; // (optional) (default to 1970-01-01T00:00Z)
Date *to = 2013-10-20T19:20:30+01:00; // (optional)
Integer *offset = 56; // (optional) (default to 0)
Integer *limit = 56; // (optional) (default to 20)
String *order = order_example; // (optional) (default to chronological)
ChainsApi *apiInstance = [[ChainsApi alloc] init];
[apiInstance chainsGetWith:from
to:to
offset:offset
limit:limit
order:order
completionHandler: ^(list output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var OmiseApi = require('omise_api');
var api = new OmiseApi.ChainsApi()
var opts = {
'from': 2013-10-20T19:20:30+01:00, // {{Date}}
'to': 2013-10-20T19:20:30+01:00, // {{Date}}
'offset': 56, // {{Integer}}
'limit': 56, // {{Integer}}
'order': order_example // {{String}}
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.chainsGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class chainsGetExample
{
public void main()
{
var apiInstance = new ChainsApi();
var from = 2013-10-20T19:20:30+01:00; // Date | (optional) (default to 1970-01-01T00:00Z)
var to = 2013-10-20T19:20:30+01:00; // Date | (optional)
var offset = 56; // Integer | (optional) (default to 0)
var limit = 56; // Integer | (optional) (default to 20)
var order = order_example; // String | (optional) (default to chronological)
try
{
list result = apiInstance.chainsGet(from, to, offset, limit, order);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling ChainsApi.chainsGet: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\ApiChainsApi();
$from = 2013-10-20T19:20:30+01:00; // Date |
$to = 2013-10-20T19:20:30+01:00; // Date |
$offset = 56; // Integer |
$limit = 56; // Integer |
$order = order_example; // String |
try {
$result = $api_instance->chainsGet($from, $to, $offset, $limit, $order);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ChainsApi->chainsGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ChainsApi;
my $api_instance = WWW::SwaggerClient::ChainsApi->new();
my $from = 2013-10-20T19:20:30+01:00; # Date |
my $to = 2013-10-20T19:20:30+01:00; # Date |
my $offset = 56; # Integer |
my $limit = 56; # Integer |
my $order = order_example; # String |
eval {
my $result = $api_instance->chainsGet(from => $from, to => $to, offset => $offset, limit => $limit, order => $order);
print Dumper($result);
};
if ($@) {
warn "Exception when calling ChainsApi->chainsGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.ChainsApi()
from = 2013-10-20T19:20:30+01:00 # Date | (optional) (default to 1970-01-01T00:00Z)
to = 2013-10-20T19:20:30+01:00 # Date | (optional)
offset = 56 # Integer | (optional) (default to 0)
limit = 56 # Integer | (optional) (default to 20)
order = order_example # String | (optional) (default to chronological)
try:
api_response = api_instance.chains_get(from=from, to=to, offset=offset, limit=limit, order=order)
pprint(api_response)
except ApiException as e:
print("Exception when calling ChainsApi->chainsGet: %s\n" % e)
Parameters
Name | Description |
---|---|
from | Date (date-time) |
to | Date (date-time) |
offset | Integer |
limit | Integer |
order | String |
Retrieve Chains ID Account
Welcome to the Omise Docs! These pages should contain everything you need to know to get paid using the Omise API. This is developer-oriented documentation.If you are not a developer, you can check our comprehensive support articles for non-technical explanations of various concepts or go straight to the plugin overview.
curl -X GET\
-H "Accept: application/json"\
"https://api.omise.co/chains/{id}/account"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ChainsApi;
import java.io.File;
import java.util.*;
public class ChainsApiExample {
public static void main(String[] args) {
ChainsApi apiInstance = new ChainsApi();
String id = id_example; // String |
try {
chain result = apiInstance.chainsIdAccountGet(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ChainsApi#chainsIdAccountGet");
e.printStackTrace();
}
}
}
import io.swagger.client.api.ChainsApi;
public class ChainsApiExample {
public static void main(String[] args) {
ChainsApi apiInstance = new ChainsApi();
String id = id_example; // String |
try {
chain result = apiInstance.chainsIdAccountGet(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ChainsApi#chainsIdAccountGet");
e.printStackTrace();
}
}
}
String *id = id_example; //
ChainsApi *apiInstance = [[ChainsApi alloc] init];
[apiInstance chainsIdAccountGetWith:id
completionHandler: ^(chain output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var OmiseApi = require('omise_api');
var api = new OmiseApi.ChainsApi()
var id = id_example; // {{String}}
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.chainsIdAccountGet(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class chainsIdAccountGetExample
{
public void main()
{
var apiInstance = new ChainsApi();
var id = id_example; // String |
try
{
chain result = apiInstance.chainsIdAccountGet(id);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling ChainsApi.chainsIdAccountGet: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\ApiChainsApi();
$id = id_example; // String |
try {
$result = $api_instance->chainsIdAccountGet($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ChainsApi->chainsIdAccountGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ChainsApi;
my $api_instance = WWW::SwaggerClient::ChainsApi->new();
my $id = id_example; # String |
eval {
my $result = $api_instance->chainsIdAccountGet(id => $id);
print Dumper($result);
};
if ($@) {
warn "Exception when calling ChainsApi->chainsIdAccountGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.ChainsApi()
id = id_example # String |
try:
api_response = api_instance.chains_id_account_get(id)
pprint(api_response)
except ApiException as e:
print("Exception when calling ChainsApi->chainsIdAccountGet: %s\n" % e)
Parameters
Name | Description |
---|---|
id* | String Required |
Create Chains ID Authorize
Welcome to the Omise Docs! These pages should contain everything you need to know to get paid using the Omise API. This is developer-oriented documentation.If you are not a developer, you can check our comprehensive support articles for non-technical explanations of various concepts or go straight to the plugin overview.
curl -X POST\
-H "Accept: application/json"\
"https://api.omise.co/chains/{id}/authorize"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ChainsApi;
import java.io.File;
import java.util.*;
public class ChainsApiExample {
public static void main(String[] args) {
ChainsApi apiInstance = new ChainsApi();
String id = id_example; // String |
try {
chain result = apiInstance.chainsIdAuthorizePost(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ChainsApi#chainsIdAuthorizePost");
e.printStackTrace();
}
}
}
import io.swagger.client.api.ChainsApi;
public class ChainsApiExample {
public static void main(String[] args) {
ChainsApi apiInstance = new ChainsApi();
String id = id_example; // String |
try {
chain result = apiInstance.chainsIdAuthorizePost(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ChainsApi#chainsIdAuthorizePost");
e.printStackTrace();
}
}
}
String *id = id_example; //
ChainsApi *apiInstance = [[ChainsApi alloc] init];
[apiInstance chainsIdAuthorizePostWith:id
completionHandler: ^(chain output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var OmiseApi = require('omise_api');
var api = new OmiseApi.ChainsApi()
var id = id_example; // {{String}}
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.chainsIdAuthorizePost(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class chainsIdAuthorizePostExample
{
public void main()
{
var apiInstance = new ChainsApi();
var id = id_example; // String |
try
{
chain result = apiInstance.chainsIdAuthorizePost(id);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling ChainsApi.chainsIdAuthorizePost: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\ApiChainsApi();
$id = id_example; // String |
try {
$result = $api_instance->chainsIdAuthorizePost($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ChainsApi->chainsIdAuthorizePost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ChainsApi;
my $api_instance = WWW::SwaggerClient::ChainsApi->new();
my $id = id_example; # String |
eval {
my $result = $api_instance->chainsIdAuthorizePost(id => $id);
print Dumper($result);
};
if ($@) {
warn "Exception when calling ChainsApi->chainsIdAuthorizePost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.ChainsApi()
id = id_example # String |
try:
api_response = api_instance.chains_id_authorize_post(id)
pprint(api_response)
except ApiException as e:
print("Exception when calling ChainsApi->chainsIdAuthorizePost: %s\n" % e)
Parameters
Name | Description |
---|---|
id* | String Required |
Retrieve Chains ID
Welcome to the Omise Docs! These pages should contain everything you need to know to get paid using the Omise API. This is developer-oriented documentation.If you are not a developer, you can check our comprehensive support articles for non-technical explanations of various concepts or go straight to the plugin overview.
curl -X GET\
-H "Accept: application/json"\
"https://api.omise.co/chains/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ChainsApi;
import java.io.File;
import java.util.*;
public class ChainsApiExample {
public static void main(String[] args) {
ChainsApi apiInstance = new ChainsApi();
String id = id_example; // String |
try {
chain result = apiInstance.chainsIdGet(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ChainsApi#chainsIdGet");
e.printStackTrace();
}
}
}
import io.swagger.client.api.ChainsApi;
public class ChainsApiExample {
public static void main(String[] args) {
ChainsApi apiInstance = new ChainsApi();
String id = id_example; // String |
try {
chain result = apiInstance.chainsIdGet(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ChainsApi#chainsIdGet");
e.printStackTrace();
}
}
}
String *id = id_example; //
ChainsApi *apiInstance = [[ChainsApi alloc] init];
[apiInstance chainsIdGetWith:id
completionHandler: ^(chain output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var OmiseApi = require('omise_api');
var api = new OmiseApi.ChainsApi()
var id = id_example; // {{String}}
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.chainsIdGet(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class chainsIdGetExample
{
public void main()
{
var apiInstance = new ChainsApi();
var id = id_example; // String |
try
{
chain result = apiInstance.chainsIdGet(id);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling ChainsApi.chainsIdGet: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\ApiChainsApi();
$id = id_example; // String |
try {
$result = $api_instance->chainsIdGet($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ChainsApi->chainsIdGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ChainsApi;
my $api_instance = WWW::SwaggerClient::ChainsApi->new();
my $id = id_example; # String |
eval {
my $result = $api_instance->chainsIdGet(id => $id);
print Dumper($result);
};
if ($@) {
warn "Exception when calling ChainsApi->chainsIdGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.ChainsApi()
id = id_example # String |
try:
api_response = api_instance.chains_id_get(id)
pprint(api_response)
except ApiException as e:
print("Exception when calling ChainsApi->chainsIdGet: %s\n" % e)
Parameters
Name | Description |
---|---|
id* | String Required |
Retrieve Chains ID Keys
Welcome to the Omise Docs! These pages should contain everything you need to know to get paid using the Omise API. This is developer-oriented documentation.If you are not a developer, you can check our comprehensive support articles for non-technical explanations of various concepts or go straight to the plugin overview.
curl -X GET\
-H "Accept: application/json"\
"https://api.omise.co/chains/{id}/keys?from=&to=&offset=&limit=&order="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ChainsApi;
import java.io.File;
import java.util.*;
public class ChainsApiExample {
public static void main(String[] args) {
ChainsApi apiInstance = new ChainsApi();
String id = id_example; // String |
Date from = 2013-10-20T19:20:30+01:00; // Date |
Date to = 2013-10-20T19:20:30+01:00; // Date |
Integer offset = 56; // Integer |
Integer limit = 56; // Integer |
String order = order_example; // String |
try {
list result = apiInstance.chainsIdKeysGet(id, from, to, offset, limit, order);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ChainsApi#chainsIdKeysGet");
e.printStackTrace();
}
}
}
import io.swagger.client.api.ChainsApi;
public class ChainsApiExample {
public static void main(String[] args) {
ChainsApi apiInstance = new ChainsApi();
String id = id_example; // String |
Date from = 2013-10-20T19:20:30+01:00; // Date |
Date to = 2013-10-20T19:20:30+01:00; // Date |
Integer offset = 56; // Integer |
Integer limit = 56; // Integer |
String order = order_example; // String |
try {
list result = apiInstance.chainsIdKeysGet(id, from, to, offset, limit, order);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ChainsApi#chainsIdKeysGet");
e.printStackTrace();
}
}
}
String *id = id_example; //
Date *from = 2013-10-20T19:20:30+01:00; // (optional) (default to 1970-01-01T00:00Z)
Date *to = 2013-10-20T19:20:30+01:00; // (optional)
Integer *offset = 56; // (optional) (default to 0)
Integer *limit = 56; // (optional) (default to 20)
String *order = order_example; // (optional) (default to chronological)
ChainsApi *apiInstance = [[ChainsApi alloc] init];
[apiInstance chainsIdKeysGetWith:id
from:from
to:to
offset:offset
limit:limit
order:order
completionHandler: ^(list output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var OmiseApi = require('omise_api');
var api = new OmiseApi.ChainsApi()
var id = id_example; // {{String}}
var opts = {
'from': 2013-10-20T19:20:30+01:00, // {{Date}}
'to': 2013-10-20T19:20:30+01:00, // {{Date}}
'offset': 56, // {{Integer}}
'limit': 56, // {{Integer}}
'order': order_example // {{String}}
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.chainsIdKeysGet(id, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class chainsIdKeysGetExample
{
public void main()
{
var apiInstance = new ChainsApi();
var id = id_example; // String |
var from = 2013-10-20T19:20:30+01:00; // Date | (optional) (default to 1970-01-01T00:00Z)
var to = 2013-10-20T19:20:30+01:00; // Date | (optional)
var offset = 56; // Integer | (optional) (default to 0)
var limit = 56; // Integer | (optional) (default to 20)
var order = order_example; // String | (optional) (default to chronological)
try
{
list result = apiInstance.chainsIdKeysGet(id, from, to, offset, limit, order);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling ChainsApi.chainsIdKeysGet: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\ApiChainsApi();
$id = id_example; // String |
$from = 2013-10-20T19:20:30+01:00; // Date |
$to = 2013-10-20T19:20:30+01:00; // Date |
$offset = 56; // Integer |
$limit = 56; // Integer |
$order = order_example; // String |
try {
$result = $api_instance->chainsIdKeysGet($id, $from, $to, $offset, $limit, $order);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ChainsApi->chainsIdKeysGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ChainsApi;
my $api_instance = WWW::SwaggerClient::ChainsApi->new();
my $id = id_example; # String |
my $from = 2013-10-20T19:20:30+01:00; # Date |
my $to = 2013-10-20T19:20:30+01:00; # Date |
my $offset = 56; # Integer |
my $limit = 56; # Integer |
my $order = order_example; # String |
eval {
my $result = $api_instance->chainsIdKeysGet(id => $id, from => $from, to => $to, offset => $offset, limit => $limit, order => $order);
print Dumper($result);
};
if ($@) {
warn "Exception when calling ChainsApi->chainsIdKeysGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.ChainsApi()
id = id_example # String |
from = 2013-10-20T19:20:30+01:00 # Date | (optional) (default to 1970-01-01T00:00Z)
to = 2013-10-20T19:20:30+01:00 # Date | (optional)
offset = 56 # Integer | (optional) (default to 0)
limit = 56 # Integer | (optional) (default to 20)
order = order_example # String | (optional) (default to chronological)
try:
api_response = api_instance.chains_id_keys_get(id, from=from, to=to, offset=offset, limit=limit, order=order)
pprint(api_response)
except ApiException as e:
print("Exception when calling ChainsApi->chainsIdKeysGet: %s\n" % e)
Parameters
Name | Description |
---|---|
id* | String Required |
Parameters
Name | Description |
---|---|
from | Date (date-time) |
to | Date (date-time) |
offset | Integer |
limit | Integer |
order | String |
Create Chains ID Revoke
Welcome to the Omise Docs! These pages should contain everything you need to know to get paid using the Omise API. This is developer-oriented documentation.If you are not a developer, you can check our comprehensive support articles for non-technical explanations of various concepts or go straight to the plugin overview.
curl -X POST\
-H "Accept: application/json"\
"https://api.omise.co/chains/{id}/revoke"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ChainsApi;
import java.io.File;
import java.util.*;
public class ChainsApiExample {
public static void main(String[] args) {
ChainsApi apiInstance = new ChainsApi();
String id = id_example; // String |
try {
chain result = apiInstance.chainsIdRevokePost(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ChainsApi#chainsIdRevokePost");
e.printStackTrace();
}
}
}
import io.swagger.client.api.ChainsApi;
public class ChainsApiExample {
public static void main(String[] args) {
ChainsApi apiInstance = new ChainsApi();
String id = id_example; // String |
try {
chain result = apiInstance.chainsIdRevokePost(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ChainsApi#chainsIdRevokePost");
e.printStackTrace();
}
}
}
String *id = id_example; //
ChainsApi *apiInstance = [[ChainsApi alloc] init];
[apiInstance chainsIdRevokePostWith:id
completionHandler: ^(chain output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var OmiseApi = require('omise_api');
var api = new OmiseApi.ChainsApi()
var id = id_example; // {{String}}
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.chainsIdRevokePost(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class chainsIdRevokePostExample
{
public void main()
{
var apiInstance = new ChainsApi();
var id = id_example; // String |
try
{
chain result = apiInstance.chainsIdRevokePost(id);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling ChainsApi.chainsIdRevokePost: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\ApiChainsApi();
$id = id_example; // String |
try {
$result = $api_instance->chainsIdRevokePost($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ChainsApi->chainsIdRevokePost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ChainsApi;
my $api_instance = WWW::SwaggerClient::ChainsApi->new();
my $id = id_example; # String |
eval {
my $result = $api_instance->chainsIdRevokePost(id => $id);
print Dumper($result);
};
if ($@) {
warn "Exception when calling ChainsApi->chainsIdRevokePost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.ChainsApi()
id = id_example # String |
try:
api_response = api_instance.chains_id_revoke_post(id)
pprint(api_response)
except ApiException as e:
print("Exception when calling ChainsApi->chainsIdRevokePost: %s\n" % e)
Parameters
Name | Description |
---|---|
id* | String Required |
Responses
Status: 200
{
"object": {
"pattern": "chain",
"type": "string",
"default": "chain"
},
"id": {
"type": "string"
},
"livemode": {
"type": "boolean",
"enum": [
true,
false
]
},
"location": {
"type": "string"
},
"revoked": {
"type": "boolean",
"enum": [
true,
false
]
},
"email": {
"type": "string"
},
"master_team": {
"type": "string"
},
"key": {
"type": "string"
},
"created_at": {
"type": "string",
"format": "date-time"
}
}